import request from '@/utils/request'

// 查询课程任务[作业和考试]列表
export function listCourse_task(query) {
  return request({
    url: '/teach/course_task/list',
    method: 'get',
    params: query
  })
}

// 查询课程任务[作业和考试]详细
export function getCourse_task(tId) {
  return request({
    url: '/teach/course_task/' + tId,
    method: 'get'
  })
}

// 新增课程任务[作业和考试]
export function addCourse_task(data) {
  return request({
    url: '/teach/course_task',
    method: 'post',
    data: data
  })
}

// 修改课程任务[作业和考试]
export function updateCourse_task(data) {
  return request({
    url: '/teach/course_task',
    method: 'put',
    data: data
  })
}

// 删除课程任务[作业和考试]
export function delCourse_task(tId) {
  return request({
    url: '/teach/course_task/' + tId,
    method: 'delete'
  })
}
